import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: r => require(['../pages/home/Index.vue'], r)
    },
    {
      path: '/add-order',
      name: 'AddOrder',
      component: r => require(['../pages/home/AddOrder.vue'], r)
    },
    {
      path: '/login',
      name: 'Login',
      component: r => require(['../pages/auth/Login.vue'], r)
    }
  ]
});
